using System;
using System.Collections;
using System.Collections.Generic;

using BVMB.DataLayer.Base;

namespace BVMB.DataLayer.BusinessObjects
{
    public partial class HanhKhach : BusinessBase<int>
    {
        #region Declarations

		private string _tenHanhKhach = String.Empty;
		private string _cmnd = String.Empty;
		private string _diaChi = String.Empty;
		
		
		private IList<Ve> _ves = new List<Ve>();
		
		#endregion

        #region Constructors

        public HanhKhach() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_tenHanhKhach);
			sb.Append(_cmnd);
			sb.Append(_diaChi);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string TenHanhKhach
        {
            get { return _tenHanhKhach; }
			set
			{
				OnTenHanhKhachChanging();
				_tenHanhKhach = value;
				OnTenHanhKhachChanged();
			}
        }
		partial void OnTenHanhKhachChanging();
		partial void OnTenHanhKhachChanged();
		
		public virtual string Cmnd
        {
            get { return _cmnd; }
			set
			{
				OnCmndChanging();
				_cmnd = value;
				OnCmndChanged();
			}
        }
		partial void OnCmndChanging();
		partial void OnCmndChanged();
		
		public virtual string DiaChi
        {
            get { return _diaChi; }
			set
			{
				OnDiaChiChanging();
				_diaChi = value;
				OnDiaChiChanged();
			}
        }
		partial void OnDiaChiChanging();
		partial void OnDiaChiChanged();
		
		public virtual IList<Ve> Ves
        {
            get { return _ves; }
            set
			{
				OnVesChanging();
				_ves = value;
				OnVesChanged();
			}
        }
		partial void OnVesChanging();
		partial void OnVesChanged();
		
        #endregion
    }
}
